<template>
  <div class="hpl-dialog-wrapper" v-show="visible" :class="{show: visible}">
    <div class="hpl-dialog  mu-scale" style="width: 360px;">
      <div class="hpl-dialog-title">提示</div>
      <div class="hpl-dialog-body">
        {{msg}}
      </div>
      <div class="hpl-dialog-actions"><button tabindex="0" type="button" class="mu-button mu-flat-button mu-primary-text-color " style="user-select: none; outline: none; -webkit-appearance: none;">
          <div class="mu-button-wrapper" @click="$emit('close')">
            <div class="mu-ripple-wrapper"></div>关闭
          </div>
        </button></div>
    </div>
  </div>
</template>
<script>
export default {
  name: "hplDialog",
  data() {
    return {

    };
  },
  props: {
    visible: Boolean,
    msg: String,
  },
  methods: {
    handleBtnClick () {
      this.$emit('close')
    },
  }
};
</script>
<style lang="scss" scoped>
.hpl-dialog-wrapper {
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  z-index: 20141228;
  .hpl-dialog {
    padding: 0;
    max-width: 75%;
    background-color: #fff;
    border-radius: 2px;
    font-size: 16px;
    -webkit-box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
    box-shadow: 0 5px 5px -3px rgba(0,0,0,.2), 0 8px 10px 1px rgba(0,0,0,.14), 0 3px 14px 2px rgba(0,0,0,.12);
    .hpl-dialog-title {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
        -ms-flex-align: center;
        align-items: center;
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
        padding: 24px 24px 20px;
        margin: 0;
        font-size: 22px;
        font-weight: 400;
        line-height: 32px;
        color: rgba(0,0,0,.87);
    }
    .hpl-dialog-title+.hpl-dialog-body {
        padding-top: 0;
    }
    .hpl-dialog-body {
        padding: 24px 24px 20px;
        color: rgba(0,0,0,.6);
    }
    .hpl-dialog-actions {
      min-height: 48px;
      padding: 8px;
      display: -webkit-box;
      display: -ms-flexbox;
      display: flex;
      -webkit-box-align: center;
      -ms-flex-align: center;
      align-items: center;
      -webkit-box-pack: end;
      -ms-flex-pack: end;
      justify-content: flex-end;
    }
  }
}
</style>